#pragma once
#include <vector>
#include <pthread.h>
#include "mod.h"


class mod_list{
	vector<mod>list;
    int M_id;  //This is id belong to List
    long size = 0;
public:
	bool add(mod *m);
	void insert(mod *m,int seat);

    mod_list *foreach(string name);          //*
    mod_list *foreach(long start,long end); //*

	bool remove(string name);
	bool remove(long id);

    bool update(mod *m, int seat);
    mod *find(string name);
    mod *find(long id);
    mod *find(string name,long id);
};

